using System;
using System.Collections.Generic;
using System.Text;

namespace CodeFactory.Language.eu
{
    public class StringManager : CodeFactory.Library.Language.IStringManager
    {
        private string name;
        private string dllName;

        public StringManager()
        {
            this.name = "English US";
            this.dllName = "CodeFactory.Language.eu";
        }

        public string Name
        {
            get { return this.name; }
        }

        public string DllName
        {
            get { return this.dllName; }
        }

        public string this[string key]
        {
            get
            {
                string result = Strings.ResourceManager.GetString(key);
                if (result == null)
                    throw new Exception(string.Format("Can't find string \"{0}\"", key));
                else
                    return result;
            }
        }
    }
}
